import axios from 'axios';

const apiClient = axios.create({
    baseURL: '/v1',
});

// 注册接口
export const register = (userData) => {
    return apiClient.post('/auth/register', userData);
};

export const login = (username, password) => {
    return apiClient.post('/auth/login', {
        username,
        password,
    });
};